package org.zpmis.domain.project.service.impl;

import org.zpmis.domain.project.dao.ProjectMapper;
import org.zpmis.domain.project.model.Project;
import org.zpmis.domain.project.service.ProjectService;
import org.zpmis.common.service.AbstractService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zpmis.domain.project.vo.ProjectStatisticsVo;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * Created with CodeGenerator
 * Description:
 * @author  Yang
 * Date: 2021-6-2
 * Time: 14:53:29
 */
@Service
@Transactional
public class ProjectServiceImpl extends AbstractService<Project> implements ProjectService {

    @Resource
    private ProjectMapper projectMapper;

    @Override
    public List<ProjectStatisticsVo> getProjectUserHoursStatistics(Long id) {
        Map<String,Object> param = new HashMap<>();
        param.put("id",id);
        return projectMapper.getProjectUserHoursStatistics(param);
    }
}
